<?php
/**
 * 
 */
class Json
{
    var $json_array = array();
    /**
     * Construtora.
     * @return 
     */
    function __construct(){
        
    }    
    function guarde($key,$valor){
        $this->json_array[$key] = $valor;   
    }
    function guarde_html($key,$valor){
        $this->json_array[$key] = htmlentities($valor);  
    }    
    function escreva(){
        echo json_encode($this->json_array);    
    }    
}  
?>
